Neural Network Projects with Python by James Loy;
Author:James Loy; [Неизв.]
Language: eng
Format: epub
Tags: COM004000 - COMPUTERS / Intelligence (AI) and Semantics, COM044000 - COMPUTERS / Neural Networks, COM037000 - COMPUTERS / Machine Theory
Publisher: Packt Publishing
Published: 2019-02-28T07:11:52+00:00
INPUT_SIZE = 128 # Change this to 48 if the code takes too long to run
vgg16 = VGG16(include_top=False, weights='imagenet',
input_shape=(INPUT_SIZE,INPUT_SIZE,3))
Note that we used include_top=False when we created a new VGG16 model. This argument tells Keras not to import the fully connected layers at the end of the VGG16 network.
We're now going to freeze the rest of the layers in the VGG16 model, since we're not going to retrain them from scratch. We can freeze the layers by running the following code snippet:
for layer in vgg16.layers:
layer.trainable = False
Next, we're going to add a fully connected layer with 1 node right at the end of the neural network. The syntax to do this is slightly different, since the VGG16 model is not a Keras Sequential model that we're used to. In any case, we can add the layers by running the following code:
from keras.models import Model
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Vision & Pattern Recognition | Expert Systems |
Intelligence & Semantics | Machine Theory |
Natural Language Processing | Neural Networks |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7879)
Hadoop in Practice by Alex Holmes(5673)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5527)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(4535)
Functional Programming in JavaScript by Mantyla Dan(3733)
The Age of Surveillance Capitalism by Shoshana Zuboff(3445)
Big Data Analysis with Python by Ivan Marin(3169)
Blockchain Basics by Daniel Drescher(2907)
The Rosie Effect by Graeme Simsion(2729)
Test-Driven Development with Java by Alan Mellor(2701)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2648)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2567)
Data Augmentation with Python by Duc Haba(2554)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2500)
Dawn of the New Everything by Jaron Lanier(2449)
Principles of Data Fabric by Sonia Mezzetta(2363)
The Infinite Retina by Robert Scoble Irena Cronin(2347)
The Art Of Deception by Kevin Mitnick(2312)
Rapid Viz: A New Method for the Rapid Visualization of Ideas by Kurt Hanks & Larry Belliston(2214)